package com.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface ItemGroupMapper {

    @Insert("insert into itemgroup(id,itemid,quantitiy) values(#{id},#{itemid},#{quantity}")
    public boolean insertItemGroup(@Param("id")Long id, @Param("itemid")Long itemid, @Param("quantity")Integer quantity);

    @Select("select max(id) from order")
    public Long getCurrentIndex();

}
